package org.hentor.controller;


import lombok.extern.slf4j.Slf4j;
import org.hentor.system.feign.IDemoClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
@Slf4j
public class DemoController {

    @Autowired
    public IDemoClient demoClient;

    @GetMapping("/getDemo")
    public String getDemo(){
        demoClient.getDemo();
        return "success";
    }
}
